package Algorithm;

public class ReplaceBlank {
    public static String replaceBlank(String iniString,int length){
        return iniString.replaceAll("\\s","%20");
    }
    public static void main(String[] args) {
        System.out.println(replaceBlank("Hello  World",12));
        System.out.println(replaceBlank("John Smith",10));
    }
}
